const aliveComponent = {
	state: {
		name: [],
	},

	mutations: {
		addAliveComponent: (state, name) => { 
			if (state.name.indexOf(name) < 0 ) {
				state.name.push(name);
			}
		},

		delAliveComponent: (state, name) => {
			let ind = state.name.indexOf(name);
			if (ind >= 0) state.name.splice(ind, 1);
		}
	}
}

export default aliveComponent;